Skip to content

Conversation

mattnolting
Copy link
Contributor

Relates to: #11624

Included components:

  • NotificationDrawer
  • Pagination
  • PopOver
  • SimpleList
  • Skeleton

Component tracker

Figma preview

Resources:

@patternfly-build
Copy link
Contributor

patternfly-build commented Jun 12, 2025

@mattnolting mattnolting marked this pull request as draft June 17, 2025 14:54
@mattnolting mattnolting marked this pull request as ready for review June 24, 2025 15:22
@mattnolting mattnolting changed the title feat(CC-batch-7): added batch 7 comps feat(CC-batch-7): added batch 7 Jun 26, 2025
@mattnolting mattnolting force-pushed the feat-CC-batch-7 branch 2 times, most recently from 1bbee4a to 6ccfde1 Compare June 30, 2025 20:29
@mattnolting mattnolting force-pushed the feat-CC-batch-7 branch 3 times, most recently from fd4bf49 to f1546dc Compare July 31, 2025 19:33
{props.notificationDrawerHeader}
<NotificationDrawerBody>
{props.notificationDrawerGroup}
<NotificationDrawerList>{props.notificationDrawerNotifications}</NotificationDrawerList>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this example have both optional groups AND a list? I think you'd want either/or

onClose={props.hasActionsMenu.onClose}
title={props.headingText}
>
{props.hasActionsMenu.dropdown}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this still work if the designer doesn't pass a dropdown? Or does figma automatically always have a dropdown? It's not a required prop.

// enum
type: figma.enum('Type', {
Square: 'square',
Circle: 'circle'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a default shape? in the PF examples, the default skeleton shape is a rectangle if square or circle are not specified.

}),
showUnreadCount: figma.boolean('Has count', {
true: 3,
false: NaN
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

count is required to NaN may cause issues, maybe set to 0 instead.

{
props: {
// boolean
hasCount: figma.boolean('Has count', {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused, seems to be a dupe of showUnreadCount.

isOpen={false}
onOpenChange={() => {}}
popperProps={{ position: 'right' }}
toggle={() => (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pass the toggleRef prop to MenuToggle's ref.

Success: 'success',
Warning: 'warning',
Danger: 'danger'
}),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is an additional custom value allowed for variant. I don't know if Figma has it explicitly though. It's the default value of variant if nothing is passed in.

// nested
pageQuantity: figma.nestedProps('Page quantity selector', {
itemCount: figma.string('Total quantity'),
state: figma.enum('State', { Disabled: true })
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The state prop looks unused.

'Bottom-middle': 'bottom',
'Bottom-right': 'bottom-end'
}),
status: figma.enum('Status', {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

icon is unused in the code connect

component={props.isLink.component}
href={props.isLink.href}
isActive={props.isActive}
key="simple-list-item-key"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

key is probably unneeded here. It's not a prop of SimpleList, and was probably only in the example because the list items were being created in a array.

'4XL': '4xl'
})
},
example: (props) => <Skeleton fontSize={props.size} type={props.type} screenreaderText="Loading default content" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no type prop, this should be shape instead (which can be circle or square)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants